package com.hitcoder.common

import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.*

interface NetworkInterface {
    /**
     * 用户登录接口
     */
    @Headers("Content-Type: application/json", "Accept: application/json")
    @POST("basic/user/login")
    fun login(@Body route: RequestBody?): Call<NetResponse<UserBasicInfo?>>


    /**
     * 上传文件
     */
    @Multipart
    @POST("/upload")
    fun upload(@Part file: List<MultipartBody.Part>?): Call<String>

}